package com.yanqu.road.entity.grandchild;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_u_school_site")
public class SchoolSiteData extends DataObject {
    @FieldTypeAnnotation(select = true,update = true)
    private long userId;
    @FieldTypeAnnotation(update = true)
    private int schoolType;
    @FieldTypeAnnotation(update = true)
    private int pos;
    @FieldTypeAnnotation
    private String childId;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (!Objects.equals(this.userId, userId)) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getSchoolType() {
        return schoolType;
    }

    public void setSchoolType(int schoolType) {
        if (!Objects.equals(this.schoolType, schoolType)) {
            this.schoolType = schoolType;
            setUpdateOption();
        }
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        if (!Objects.equals(this.pos, pos)) {
            this.pos = pos;
            setUpdateOption();
        }
    }

    public String getChildId() {
        return childId;
    }

    public void setChildId(String childId) {
        if (!Objects.equals(this.childId, childId)) {
            this.childId = childId;
            setUpdateOption();
        }
    }
}
